import request from '@/utils/request';

export function page(data) {
    return request.post('/api/admin/user/page', data);
}

export function updateStatus(id, status) {
    return request.get(`/api/admin/user/${id}/status?status=`+status);
}

export function updateRole(id, role) {
    return request.get(`/api/admin/user/${id}/role`, role);
}
